home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / MacMETH 3.2.1 / Coroutines / Coroutines.DOC < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.1 KB  |  24 lines  |  [TEXT/MEDT]

  1. Implementation Notes to the module Coroutines:
  2.  
  3. The implementation of the module Coroutines is based on the
  4. Apple Thread Manager. Therefore the Thread Manager extension
  5. must be installed inside the system folder. This extension is NOT
  6. included here, but is freely available via anonymous ftp from
  7. "ftp.apple.com." in the directory /dts/mac/hacks.
  8.  
  9. The workspace of the coroutines and processes is allocated on the heap.
  10. You have to carefully calculate the workspace size. The routine
  11. FreeCoroutineWorkspace may help you in this task. If a coroutine
  12. or a process runs out of workspace (stack) your machine will crash.
  13.  
  14. Coroutines are co-operative threads. They may use any ToolBox routines.
  15. Processes are pre-emptive threads. You have to follow the same rules
  16. like in interrupt routines. Calling most of the ToolBox routines is
  17. considered as a programming error and may lead into a system crash.
  18.  
  19. The Coroutines and the Thread modules are provided for free. The same
  20. copyright conditions apply like in MacMETH 3.2.1. Please read the
  21. file "copyright" included in the MacMETH distribution.
  22.  
  23. jth 4/94
  24.